<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时钟</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .box {
            width: 500px;
            height: 500px;
            margin: 100px auto;
            border: 20px solid red;
            border-radius: 50%;
            position: relative;
        }

        .box2 {

            width: 500px;
            height: 500px;
            border: 15px solid #a20000;
            box-sizing: border-box;
            border-radius: 50%;
        }

        ul > li {
            width: 10px;
            height: 472px;
            background-color: #999999;
            position: absolute;
            top: 14px;
            left: calc(50% - 5px);
        }

        ul > :nth-child(1) {
            transform: rotate(30deg);
        }

        ul > :nth-child(2) {
            transform: rotate(60deg);
        }

        ul > :nth-child(3) {
            transform: rotate(90deg);
        }

        ul > :nth-child(4) {
            transform: rotate(120deg);
        }

        ul > :nth-child(5) {
            transform: rotate(150deg);
        }

        ul > :nth-child(6) {
            transform: rotate(180deg);
        }

        .box:before {
            display: block;
            content: "";
            width: 412px;
            height: 412px;
            border-radius: 50%;
            background-color: white;
            position: absolute;
            z-index: 1;
            top: calc(50% - 412px / 2);
            left: calc(50% - 412px / 2);
        }

        ol > li {
            position: absolute;
            width: 50px;
            height: 50px;
            line-height: 50px;
            font-size: 30px;
            text-align: center;
            top: 40px;
            left: calc(50% - 25px);
            z-index: 2;
            transform-origin: center 210px;
        }

        ol > :nth-child(2) {
            transform: rotate(30deg);
        }

        ol > :nth-child(3) {
            transform: rotate(60deg);
        }

        ol > :nth-child(4) {
            transform: rotate(90deg);
        }

        ol > :nth-child(5) {
            transform: rotate(120deg);
        }

        ol > :nth-child(6) {
            transform: rotate(150deg);
        }

        ol > :nth-child(7) {
            transform: rotate(180deg);
        }

        ol > :nth-child(8) {
            transform: rotate(-150deg);
        }

        ol > :nth-child(9) {
            transform: rotate(-120deg);
        }

        ol > :nth-child(10) {
            transform: rotate(-90deg);
        }

        ol > :nth-child(11) {
            transform: rotate(-60deg);
        }

        ol > :nth-child(12) {
            transform: rotate(-30deg);
        }

        ol>li>span{
            display: block;
            text-align: center;
        }
        ol > :nth-child(2) > span {
            width: 50px;
            height: 50px;
            transform: rotate(-30deg);
        }

        ol > :nth-child(3) > span {
            width: 50px;
            height: 50px;
            transform: rotate(-60deg);
        }

        ol > :nth-child(4) > span {
            width: 50px;
            height: 50px;
            transform: rotate(-90deg);
        }

        ol > :nth-child(5) > span {
            width: 50px;
            height: 50px;
            transform: rotate(-120deg);
        }

        ol > :nth-child(6) > span {
            width: 50px;
            height: 50px;
            transform: rotate(-150deg);
        }

        ol > :nth-child(7) > span {
            width: 50px;
            height: 50px;
            transform: rotate(-180deg);
        }

        ol > :nth-child(8) > span {
            width: 50px;
            height: 50px;
            transform: rotate(150deg);
        }

        ol > :nth-child(9) > span {
            width: 50px;
            height: 50px;
            transform: rotate(120deg);
        }

        ol > :nth-child(10) > span {
            width: 50px;
            height: 50px;
            transform: rotate(90deg);
        }

        ol > :nth-child(11) > span {
            width: 50px;
            height: 50px;
            transform: rotate(60deg);
        }

        ol > :nth-child(12) > span {
            width: 50px;
            height: 50px;
            transform: rotate(30deg);
        }
        .o1{
            background-color: #ff8094;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            position: absolute;
            left: calc(50% - 20px);
            top: calc(50% - 20px);
            z-index: 3;
        }
        .o2{
            background-color: pink;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            position: absolute;
            left: calc(50% - 25px /2);
            top: calc(50% - 25px / 2);
            z-index: 4;
        }
        .o3{
            background-color: #d92e2e;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            position: absolute;
            left: calc(50% - 15px / 2);
            top: calc(50% - 15px / 2);
            box-shadow: inset -2px -2px 2px rgba(0,0,0,.4);
            z-index: 5;
        }
        .hour{
            transition: all 60s;
            width: 13px;
            height: 110px;
            background-color: #999;
            position: absolute;
            top: 140px;
            left: calc(50% - 13px /2);
            transform-origin: center bottom;
            z-index: 2;
        }
        .min{
            transition: all 60s;
            width: 10px;
            height: 150px;
            background-color: #999;
            position: absolute;
            top: 100px;
            left: calc(50% - 10px /2);
            transform-origin: center bottom;
            transform: rotate(-90deg);
            z-index: 2;
        }
        .sec{
            transition: all 60s;
            width: 7px;
            height: 140px;
            background-color: #d92e2e;
            position: absolute;
            top: 110px;
            left: calc(50% - 7px /2);
            transform-origin: center bottom;
            transform: rotate(150deg);
            z-index: 2;
        }
        .box:hover>.sec{
            transform: rotate(46656000deg);
        }
        .box:hover>.min{
            transform: rotate(129600deg);
        }
        .box:hover>.hour{
            transform: rotate(360deg);
        }
        .jt{
            border: 10px solid transparent;
            border-bottom: 18px solid #d92e2e;
            position: absolute;
            right: -6px;
            top: -23px;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="box2">
        <div class="box3"></div>
    </div>
    <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
    <ol>
        <li><span>12</span></li>
        <li><span>1</span></li>
        <li><span>2</span></li>
        <li><span>3</span></li>
        <li><span>4</span></li>
        <li><span>5</span></li>
        <li><span>6</span></li>
        <li><span>7</span></li>
        <li><span>8</span></li>
        <li><span>9</span></li>
        <li><span>10</span></li>
        <li><span>11</span></li>
    </ol>
    <div class="o1"></div>
    <div class="o2"></div>
    <div class="o3"></div>
    <div class="hour"></div>
    <div class="min"></div>
    <div class="sec">
        <div class="jt"></div>
    </div>
</div>
</body>
</html>